<!DOCTYPE html>
<html xmlns:th="http://www.thymeleaf.org">
<head>
    <meta name="viewport" content="width=device-width, initial-scale=1.0"/>
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8"/>
    <title>profile setting</title>
    <link rel="stylesheet" href="../static/assets/bootstrap/css/bootstrap.min.css"
          th:href="@{/assets/bootstrap/css/bootstrap.min.css}"/>
</head>
<body>

<section>
    <div class="container mt-5">
        <div class="row">
            <div class="col-sm-3">

            </div>
            <div class="col-sm-6">
                <form id="profileForm" action="/user/profile" method="post">
                    <div class="form-group row">
                        <label for="nickName" class="col-3 col-form-label text-right">昵称</label>
                        <div class="col-9">
                            <input type="text" class="form-control" name="nickName" id="nickName"
                                   th:value="${userAccountVo.nickName}" placeholder="昵称">
                        </div>
                    </div>
                    <div class="form-group row">
                        <label for="email" class="col-3 col-form-label text-right">邮箱</label>
                        <div class="col-9">
                            <input type="email" class="form-control" name="email" id="email"
                                   th:value="${userAccountVo.email}" placeholder="邮箱">
                        </div>
                    </div>
                    <div class="form-group row">
                        <label for="mobile" class="col-3 col-form-label text-right">手机号</label>
                        <div class="col-9">
                            <input type="text" class="form-control" name="mobile" id="mobile"
                                   th:value="${userAccountVo.mobile}" placeholder="手机号">
                        </div>
                    </div>
                    <div class="form-group row">
                        <label for="province" class="col-3 col-form-label text-right">省/市</label>
                        <div class="col-4">
                            <input type="text" class="form-control" name="province" id="province"
                                   th:value="${userAccountVo.province}" placeholder="省">
                        </div>
                        <div class="col-5">
                            <input type="text" class="form-control" name="city" id="city"
                                   th:value="${userAccountVo.city}"
                                   placeholder="市">
                        </div>
                    </div>
                    <div class="form-group row">
                        <label for="address" class="col-3 col-form-label text-right">地址</label>
                        <div class="col-9">
                            <input type="text" class="form-control" name="address" id="address"
                                   th:value="${userAccountVo.address}" placeholder="地址">
                        </div>
                    </div>
                    <div class="form-group row">
                        <label for="birthday" class="col-3 col-form-label text-right">生日</label>
                        <div class="col-9">
                            <input type="text" class="form-control" name="birthday" id="birthday"
                                   th:value="${userAccountVo.birthday!=null?(#dates.format(userAccountVo.birthday,'MM-dd-yyyy')):('')}"
                                   placeholder="生日MM-dd-yyyy">
                        </div>
                    </div>
                    <div class="form-group row">
                        <label for="birthday" class="col-3 col-form-label"></label>
                        <div class="col-2">
                            <button type="submit" class="btn btn-primary">提交</button>
                        </div>
                        <div class="col-2">
                            <a class="btn btn-sm" href="/logout">退出</a>
                        </div>
                    </div>

                </form>
            </div>
            <div class="col-sm-3">

            </div>
        </div>
    </div>
</section>
<script src="../static/assets/jquery-3.4.1.min.js"
        th:src="@{/assets/jquery-3.4.1.min.js}"></script>
<script src="../static/assets/bootstrap/js/bootstrap.min.js"
        th:src="@{/assets/bootstrap/js/bootstrap.min.js}"></script>
<script th:src="@{/assets/localforage.min.js}" src="../static/assets/localforage.min.js"></script>
</body>
</html>